{% extends "base.html" %}
{% block title %}
    {{ info.course_name }}-CSDN商城
{% endblock %}
{% block neirong %}
    <style>
        .part_1{width: 100%; overflow: hidden;}
        .img{width: 470px; float: left;}
        .info{width: 400px; float: left; margin-left: 18px; line-height: 53px;}
        .buy_part a{margin-right:18px;display: block; width: 90px; height: 35px; line-height: 35px; background-color: #ff6a00; color: #ffffff; text-align: center;float: left;}
    </style>
    <div class="part_1">
        <div class="img">
            <img src="../../{{ info.img }}" width="100%" style="min-height: 300px;">
        </div>
        <div class="info">
            课程名称：{{ info.course_name }}<br>
            课程分类：{{ info.sender }}<br>
            课程售价：{{ info.price }}<br>
            <div class="buy_part">
                {% if goumai == 0 %}
                    <a href="{% url "buy_course" info.id %}">立即购买</a>&nbsp;&nbsp;
                    &nbsp;<a href="{% url "shop_car" info.id %}">加入购物车</a>&nbsp;
                {% else %}
                    <a href="{% url "user_video" info.id %}">观看视频</a>
                {% endif %}
            </div>
        </div>
    </div>
    <hr style="margin-top: 25px; margin-bottom: 25px;">
    <div class="part_2">
    {{ info.jieshao }}
    </div>
    <div style="width: 100%;height: 0px; overflow: hidden;clear: both"></div>
{% endblock %}